import request from '@/utils/request'

// 查询发布评论列表
export function listPostcomments(query) {
  return request({
    url: '/index/postcomments/list',
    method: 'get',
    params: query
  })
}

// 查询发布评论详细
export function getPostcomments(id) {
  return request({
    url: '/index/postcomments/' + id,
    method: 'get'
  })
}

// 新增发布评论
export function addPostcomments(data) {
  return request({
    url: '/index/postcomments',
    method: 'post',
    data: data
  })
}

// 修改发布评论
export function updatePostcomments(data) {
  return request({
    url: '/index/postcomments',
    method: 'put',
    data: data
  })
}

// 删除发布评论
export function delPostcomments(id) {
  return request({
    url: '/index/postcomments/' + id,
    method: 'delete'
  })
}
